cmake_minimum_required(VERSION 3.19)
project(C_ForumServer C)

set(CMAKE_C_STANDARD 11)

add_executable(server myhead.c server.c)
add_executable(client myhead.c client.c)
add_executable(test myhead.c test.c)

find_package(Threads REQUIRED)
target_link_libraries(server PRIVATE Threads::Threads)
target_link_libraries(client PRIVATE Threads::Threads)
#target_link_libraries(test pthread)

